package com.zhijian.medical.service;

import com.zhijian.medical.entity.po.RoutineSingleSample;
import com.zhijian.medical.entity.po.RoutineSingleSampleQp;
import com.zhijian.medical.entity.vo.request.RoutineSingleSampleSearchVo;
import com.zhijian.medical.entity.vo.request.RoutineSingleSampleSaveOrUpdateVo;
import com.zhijian.medical.entity.vo.response.RoutineSingleSampleVo;
import com.zhijian.util.page.Page;

import java.util.List;

/**
 * 常规病例-取材-取材明细 业务处理层
 *
 * @author auto
 * @version 1.0
 * @date 2024-07-24 19:22:00
 */
public interface RoutineSingleSampleService {

    /**
    * 主键查询
    *
    * @param id
    * @return
    */
    RoutineSingleSample selectById(Long id);

    /**
    * 主键查询vo
    *
    * @param id
    * @return
    */
    RoutineSingleSampleVo selectVoById(Long id);

    /**
    * 按照主键删除
    *
    * @param id
    */
    void deleteById(Long id);

    /**
    * 按照主键批量删除
    *
    * @param idList
    */
    void deleteByIdList(List<Long> idList);

    /**
    * 新增
    *
    * @param routineSingleSample
    * @return
    */
    Long insert(RoutineSingleSample routineSingleSample);

    /**
    * 动态新增
    *
    * @param routineSingleSample
    * @return
    */
    Long insertSelective(RoutineSingleSample routineSingleSample);

    /**
    * 更改
    *
    * @param routineSingleSample
    * @return
    */
    boolean update(RoutineSingleSample routineSingleSample);

    /**
    * 动态修改
    *
    * @param record
    * @return
    */
    boolean updateByPrimaryKeySelective(RoutineSingleSample record);

    /**
    * 保存
    *
    * @param saveOrUpdateVo
    * @return
    */
    boolean save(RoutineSingleSampleSaveOrUpdateVo saveOrUpdateVo);

    /**
    * 编辑
    *
    * @param saveOrUpdateVo
    * @return
    */
    boolean modify(RoutineSingleSampleSaveOrUpdateVo saveOrUpdateVo);

    /**
    * 列表
    *
    * @param routineSingleSampleSearchVo
    * @return
    */
    RoutineSingleSampleVo selectOne(RoutineSingleSampleSearchVo routineSingleSampleSearchVo);

    /**
    * 总数
    *
    * @param routineSingleSampleSearchVo
    * @return
    */
    Integer count(RoutineSingleSampleSearchVo routineSingleSampleSearchVo);

    /**
    * 列表
    *
    * @param routineSingleSampleSearchVo
    * @return
    */
    List<RoutineSingleSampleVo> selectList(RoutineSingleSampleSearchVo routineSingleSampleSearchVo);

    /**
     * 切片列表
     *
     * @param routineSingleSampleSearchVo
     * @return
     */
    List<RoutineSingleSampleQp> selectQpList(RoutineSingleSampleSearchVo routineSingleSampleSearchVo);

    /**
    * 分页查询
    *
    * @param routineSingleSampleSearchVo
    * @return
    */
    Page<RoutineSingleSampleVo> selectPage(RoutineSingleSampleSearchVo routineSingleSampleSearchVo);

    /**
    * 批量新增数据（MyBatis原生foreach方法）
    *
    * @param entities 实例对象列表
    * @return 影响行数
    */
    boolean insertBatch(List<RoutineSingleSample> entities);

    /**
    * 动态删除，慎重用此方法！！
    *
    * @param routineSingleSampleSearchVo
    * @return
    */
    void deleteByCondition(RoutineSingleSampleSearchVo routineSingleSampleSearchVo);

    List<String> selectNumList(String number);
}